/*
 * 文件名: DateNumericAdapter.java
 * 版    权：  Copyright PingAn Technology All Rights Reserved.
 * 描    述: [该类的简要描述]
 * 创建人: EX-XUJIAO001
 * 创建时间: 2011-12-29
 * 
 * 修改人：
 * 修改时间:
 * 修改内容：[修改内容]
 */
package app.widget.calendar.widget.adapter;

import android.content.Context;
import android.graphics.Typeface;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

/**
 * @author EX-XUJIAO001
 * @date 2011-12-29
 * @version [Android PABank C01, @2011-12-29]
 * @description
 */
public class DateNumericAdapter extends NumericWheelAdapter {
    // Index of current item
    int currentItem;
    // Index of item to be highlighted
    int currentValue;
    String str;
    /**
     * Constructor
     */
    public DateNumericAdapter(Context context, int minValue, int maxValue, int current ,String str) {
        super(context, minValue, maxValue);
        this.currentValue = current;
        //setTextSize(16);
        this.str = str;
        
    }
    
   /* @Override
    protected void configureTextView(TextView view) {
        super.configureTextView(view);
        if (currentItem == currentValue) {
            view.setTextColor(0xFF0000F0);
        }
        view.setTypeface(Typeface.SANS_SERIF);
    }*/
    
    @Override
    public View getItem(int index, View cachedView, ViewGroup parent ) {
        currentItem = index;
        return super.getItem(index, cachedView, parent ,str);
    }
    
    
}

